package org.ali.creationalpattern.factorypattern;

import org.ali.creationalpattern.factorypattern.color.Color;

/**
 * 工厂模式
 */
public class Main {
    public static void main(String[] args) {
        Color red = ColorFactory.getColor("red");
        red.showMessage();

        Color green = ColorFactory.getColor("green");
        green.showMessage();
    }
}
